package com.tencreat.domain.pt;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDate;

import com.tencreat.common.core.domain.BaseEntity;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 拼团收益记录对象 mall_pt_user_income_record
 *
 * @author tencreat
 * @date 2021-11-27
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_user_income_record")
public class MallPtUserIncomeRecord extends BaseEntity<MallPtUserIncomeRecord> {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 用户id
     */
    @Excel(name = "用户uuid")
    @ApiModelProperty(value = "用户uuid")
    @TableField("`uuid`")
    private Long uuid;


    /**
     * 收益类型 1管理奖 2未拼中
     */
    @Excel(name = "收益类型 1管理奖 2未拼中 3奖金池 4每日清空分配 5平级奖")
    @ApiModelProperty(value = "收益类型 1管理奖 2未拼中 3奖金池 4每日清空分配 5平级奖")
    @TableField("`type`")
    private Integer type;

    /**
     * 收益值
     */
    @Excel(name = "收益值")
    @ApiModelProperty(value = "收益值")
    @TableField("`income_value`")
    private BigDecimal incomeValue;

    /**
     * 结算日期
     */
    @Excel(name = "收益日期")
    @ApiModelProperty(value = "收益日期")
    @TableField("`income_date`")
    private LocalDate incomeDate;


    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /**
     * 租户ID
     */
    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
